package com.wxm.killing.mq.common.auth;

/**
 * @Description 用户信息处理
 * @author: wxm
 * @date: 2019/10/23 23:28
 * @version: 1.0
 */
public class UserInfoContext {
    public static final String USER_INFO = "USER_INFO";

    public static UserInfo getUserInfo(){
        return (UserInfo) BaseContextHandler.get(USER_INFO);
    }

    public static void setUserInfo(UserInfo userInfo){
        BaseContextHandler.set(USER_INFO,userInfo);
    }
}
